package com.zhiyou100.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 杨磊
 * @since 2020-10-09
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
public class TabUser extends Model<TabUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    /**
     * 用户名
     */
    private String uname;

    /**
     * 密码
     */
    private String upwd;

    /**
     * 性别
     */
    private String usex;

    /**
     * 状态：0 未登陆 1 已登陆 -1 冻结
     */
    private String ustatus;

    /**
     * 备注
     */
    private String uremark;


    @Override
    protected Serializable pkVal() {
        return this.uid;
    }

}
